<template>
    <div class="audit-project-check-view">

      <el-form :inline="true" ref="elForm" :model="datas" size="small" label-width="110px">
        <el-row>
          <el-col :span="8">
            <el-form-item label="立项信息：">
              <div>{{datas.demand_info_name ? datas.demand_info_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目来源：">
              <div>{{datas.project_source_name ? datas.project_source_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目编号：">
              <div>{{datas.project_no ? datas.project_no : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目名称：">
              <div>{{datas.project_name ? datas.project_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目所属阶段：">
              <div>{{datas.project_phases_name ? datas.project_phases_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目级别：">
              <div>{{datas.project_level_name ? datas.project_level_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目类型：">
              <div>{{datas.project_category_name ? datas.project_category_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申报类别：">
              <div>{{datas.sign_category_name ? datas.sign_category_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="药物成分：">
              <div>{{datas.drug_ingredient ? datas.drug_ingredient : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="药物类别：">
              <div>{{datas.drug_category ? datas.drug_category : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="功能主治：">
              <div>{{datas.function_attend ? datas.function_attend : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="剂型与规格：">
              <div>{{datas.drug_or_specifications ? datas.drug_or_specifications : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目负责人：">
              <div>{{datas.project_person_in_charge ? datas.project_person_in_charge : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="委托单位：">
              <div>{{datas.entrusting_party ? datas.entrusting_party : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="工期（天）：">
              <div>{{datas.duration}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="开始时间：">
              <div>{{datas.plan_start_time ? dateFormat1('yyyy-mm-dd',datas.plan_start_time) : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="结束时间：">
              <div>{{datas.plan_start_time ? dateFormat1('yyyy-mm-dd',datas.plan_end_time) : "无"}}</div>
            </el-form-item>
          </el-col>

          <el-col :span="8">
            <el-form-item label="实际开始时间：">
              <div>{{datas.reality_start_time ? dateFormat1('yyyy-mm-dd',datas.reality_start_time) : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="实际结束时间：">
              <div>{{datas.reality_end_time ? dateFormat1('yyyy-mm-dd',datas.reality_end_time) : "无"}}</div>
            </el-form-item>
          </el-col>

        </el-row>

      </el-form>

      <el-form size="small" label-width="110px">
        <el-form-item label="验收报告：">
          <file-preview :file-list="datas.report ? datas.report : []" />
        </el-form-item>

        <el-form-item label="线下提交：">
          <span>{{datas.check_files_offline?'是':'否'}}</span>
        </el-form-item>

        <el-form-item label="项目验收材料：">
          <file-preview :file-list="datas.check_files ? datas.check_files : []" />
        </el-form-item>
      </el-form>

    </div>
</template>

<script>
    export default {
        name: "projectCheckView",
        props:{
            datas:{
                type:Object,
                default:function () {
                    return{
                        report:[],
                        check_files:[]
                    }
                }
            },
        },

    }
</script>

<style scoped>

</style>
